Skip to content

feat(opencode-agents): route completion configs through OpenCode - #180

Closed
apucacao wants to merge 1 commit into
cursor/opencode-completion-prompts-d425from
cursor/opencode-completion-route-d425
Closed

apucacao wants to merge 1 commit into
cursor/opencode-completion-prompts-d425from
cursor/opencode-completion-route-d425

Conversation

@apucacao

@apucacao apucacao commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Superseded by the agent-config plan. Leave this open. Do not merge it.

Turnkey will evaluate a new agent-mode config, vega-base-agent, with create_opencode_handler. Rendering agent instructions is the stacked PR on #179 (cursor/opencode-render-instructions-d425). This completion route is not part of that stack. vega-base-prompt stays completion mode for the Go path.

Decision

This PR adds a completion route. create_opencode_handlers collapses messages into the system prompt and renders them with parse_template.

Why it was opened

A completion variation normalizes to mode messages, and the agent handler only advertises ("*", "agent"). That route is no longer how Turnkey will run.

What this PR does not do

Next

Nothing in the Turnkey stack builds on this branch. The next change in the stack is the agent-instruction render PR on #179, then observability #2547.

Open in Web Open in Cursor 

Collapse messages into the system prompt and render template variables.
create_opencode_handler stays agent-only. This does not change who
evaluates the AI Config.

Co-authored-by: alexis <alexis@launchdarkly.com>
@jeffdupont

Copy link
Copy Markdown
Contributor

@apucacao #182's description says this completion-config route was rejected: vega-base-prompt stays a completion config for the Go path, and turnkey uses a separate agent config instead. If that's settled, can you close this one? It's still open, so it counts as an open PR in the GA tracker.

@apucacao

Copy link
Copy Markdown
Contributor Author

Closing this. Turnkey will use a new agent config, and vega-base-prompt stays a completion config for the Go path. Template rendering for agent instructions is #182.

@apucacao apucacao closed this Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants